-- GENERATED SPELL FOR [Guard Tark] --


function spell0_5094(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_5094', 663, 1)
end

function spell1_5094(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5094', 640, 1)
end

function Sorts_5094(pUnit, Event)
local choix_sorts_5094 = math.random(0, 1)
if choix_sorts_5094 == 0 then
pUnit:RegisterEvent('spell0_5094', 1, 1)
end
if choix_sorts_5094 == 1 then
pUnit:RegisterEvent('spell1_5094', 1, 1)
end
end

function mob5094_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5094', math.random(1500, 3000), 1)
end

function mob5094_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5094_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5094_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5094, 1, 'mob5094_Action')
RegisterUnitEvent(5094, 2, 'mob5094_Leave')
RegisterUnitEvent(5094, 3, 'mob5094_Kill')
RegisterUnitEvent(5094, 4, 'mob5094_Die')
